package com.songlanyun.modules.signin.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.RootEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 签到管理-签到记录
 *
 * @author lijiahe
 * @date 2022-08-03
 */
@Data
@TableName("yxt_sign_in_record")
@EqualsAndHashCode(callSuper = true)
public class SignInRecordEntity extends RootEntity<Long, SignInRecordEntity> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 签到时间
     */
    private LocalDateTime signInTime;
    /**
     * 爱心
     */
    private Integer integral;
    /**
     * 优惠券id
     */
    private Long couponId;
    /**
     * 优惠券名称
     */
    private String couponName;
    /**
     * 奖励张数
     */
    private Integer numberRewards;

    @Override
    public Long getIdentity() {
        return getId();
    }

}
